﻿



using System; 
using System.Collections;
using System.Collections.Generic ;
using System.Runtime.Serialization;

namespace ufida.u9.ait.openapi
{
	/// <summary>
	/// 派工单AITDTO DTO :REST自定义的数据传输类型 
	/// 
	/// </summary>
	[DataContract(Namespace = "ufida.u9.ait.openapi")]
	[Serializable]
	public partial class DispatchOrderAITDTOData  
	{
		/// <summary>
		/// Default Constructor
		/// </summary>
		public DispatchOrderAITDTOData()
		{
			initData();
		}
		private void initData()
		{
		
		
		
		
		
		
		
		
		

			//调用默认值初始化服务进行配置方式初始化
			UFSoft.UBF.Service.DTOService.InitConfigDefault(this);
		}
		[System.Runtime.Serialization.OnDeserializing]
		internal void OnDeserializing(System.Runtime.Serialization.StreamingContext context)
		{
			 initData();
		}
		#region Do SerializeKey -ForDTODataType
		//只为处理集合型EntityKey。原因集合型EntityKey由于使用臫的集合对象，无法实现数据共享.-UBF专用.
		public void DoSerializeKeyList(IDictionary dict)
		{
			if (dict == null ) dict = new Hashtable() ;
			if (dict[this] != null)
				return ;
			dict[this] = this;
	        			if (this.DispatchOrderDocLines!=null)
			{
				foreach(ufida.u9.ait.openapi.DispatchOrderDocLineAITDTOData objdata in this.DispatchOrderDocLines)
				{
					objdata.DoSerializeKeyList(dict);
				}
			}
				        			if (this.MO != null) 
			{
				this.MO.DoSerializeKeyList(dict);
			}
	        	        	        			if (this.DispatchOrderDocType != null) 
			{
				this.DispatchOrderDocType.DoSerializeKeyList(dict);
			}
	        	        	        			if (this.DispatchCompleteOrderDocType != null) 
			{
				this.DispatchCompleteOrderDocType.DoSerializeKeyList(dict);
			}
	        			if (this.WorkCenter != null) 
			{
				this.WorkCenter.DoSerializeKeyList(dict);
			}

		}
		#endregion 
		/// <summary>
		/// Constructor Full Argument
		/// </summary>
		public DispatchOrderAITDTOData(  List<ufida.u9.ait.openapi.DispatchOrderDocLineAITDTOData> dispatchOrderDocLines  , ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData mO  , System.String planStartDate  , System.String planCompleteDate  , ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData dispatchOrderDocType  , System.String businessDate  , System.String docNo  , ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData dispatchCompleteOrderDocType  , ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData workCenter  )
		{
			initData();
			this.DispatchOrderDocLines = dispatchOrderDocLines;
			this.MO = mO;
			this.PlanStartDate = planStartDate;
			this.PlanCompleteDate = planCompleteDate;
			this.DispatchOrderDocType = dispatchOrderDocType;
			this.BusinessDate = businessDate;
			this.DocNo = docNo;
			this.DispatchCompleteOrderDocType = dispatchCompleteOrderDocType;
			this.WorkCenter = workCenter;
		}
		#region System Fields 
		//--系统字段,目前没有.EntityData上有相应的字段,用于保存相关的实体状态信息,DTO上没有状态信息.	
		#endregion
		
		#region DTO Properties 
	
		

		/// <summary>
		/// 派工单行
		/// 派工单AITDTO.Misc.派工单行
		/// </summary>
		private List<ufida.u9.ait.openapi.DispatchOrderDocLineAITDTOData> m_dispatchOrderDocLines ;
		[DataMember(IsRequired=false)]
		public List<ufida.u9.ait.openapi.DispatchOrderDocLineAITDTOData> DispatchOrderDocLines
		{
			get	
			{	
				if (m_dispatchOrderDocLines == null )
				{
					List<ufida.u9.ait.openapi.DispatchOrderDocLineAITDTOData> n_m_list = new List<ufida.u9.ait.openapi.DispatchOrderDocLineAITDTOData>() ;
					m_dispatchOrderDocLines = n_m_list ;
				}
				return m_dispatchOrderDocLines ;
			}
			set	
			{	
				m_dispatchOrderDocLines = value ;	
			}
		}
			
		

		/// <summary>
		/// 生产订单
		/// 派工单AITDTO.Misc.生产订单
		/// </summary>
		private ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData m_mO ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData MO
		{
			get	
			{	
				return m_mO ;
			}
			set	
			{	
				m_mO = value ;	
			}
		}
			
		

		/// <summary>
		/// 计划开工日期
		/// 派工单AITDTO.Misc.计划开工日期
		/// </summary>
		private System.String m_planStartDate ;
		[DataMember(IsRequired=false)]
		public System.String PlanStartDate
		{
			get	
			{	
				return m_planStartDate ;
			}
			set	
			{	
				m_planStartDate = value ;	
			}
		}
			
		

		/// <summary>
		/// 计划完工日期
		/// 派工单AITDTO.Misc.计划完工日期
		/// </summary>
		private System.String m_planCompleteDate ;
		[DataMember(IsRequired=false)]
		public System.String PlanCompleteDate
		{
			get	
			{	
				return m_planCompleteDate ;
			}
			set	
			{	
				m_planCompleteDate = value ;	
			}
		}
			
		

		/// <summary>
		/// 单据类型
		/// 派工单AITDTO.Misc.单据类型
		/// </summary>
		private ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData m_dispatchOrderDocType ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData DispatchOrderDocType
		{
			get	
			{	
				return m_dispatchOrderDocType ;
			}
			set	
			{	
				m_dispatchOrderDocType = value ;	
			}
		}
			
		

		/// <summary>
		/// 业务日期
		/// 派工单AITDTO.Misc.业务日期
		/// </summary>
		private System.String m_businessDate ;
		[DataMember(IsRequired=false)]
		public System.String BusinessDate
		{
			get	
			{	
				return m_businessDate ;
			}
			set	
			{	
				m_businessDate = value ;	
			}
		}
			
		

		/// <summary>
		/// 单号
		/// 派工单AITDTO.Misc.单号
		/// </summary>
		private System.String m_docNo ;
		[DataMember(IsRequired=false)]
		public System.String DocNo
		{
			get	
			{	
				return m_docNo ;
			}
			set	
			{	
				m_docNo = value ;	
			}
		}
			
		

		/// <summary>
		/// 完工单据类型
		/// 派工单AITDTO.Misc.完工单据类型
		/// </summary>
		private ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData m_dispatchCompleteOrderDocType ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData DispatchCompleteOrderDocType
		{
			get	
			{	
				return m_dispatchCompleteOrderDocType ;
			}
			set	
			{	
				m_dispatchCompleteOrderDocType = value ;	
			}
		}
			
		

		/// <summary>
		/// 工作中心
		/// 派工单AITDTO.Misc.工作中心
		/// </summary>
		private ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData m_workCenter ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData WorkCenter
		{
			get	
			{	
				return m_workCenter ;
			}
			set	
			{	
				m_workCenter = value ;	
			}
		}
			
		#endregion	

		#region Multi_Fields
																		
		#endregion 
	} 	
}
